package com.yt.sys.models.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("sys_admin_role")
@ApiModel(value = "SysAdminRole", description = "管理员-角色关联表")
public class SysAdminRole implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "关联记录ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "管理员ID")
    @TableField("admin_id")
    private Integer adminId;

    @ApiModelProperty(value = "角色ID")
    @TableField("role_id")
    private Integer roleId;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "逻辑删除（0=正常，1=删除）")
    @TableField("is_delete")
    @TableLogic
    private Integer isDelete;
}